package cn.edu.seu.ssny.service;


import cn.edu.seu.ssny.entity.Device;
import cn.edu.seu.ssny.entity.DeviceCategory;
import cn.edu.seu.ssny.entity.Project;
import cn.edu.seu.ssny.service.support.IBaseService;

import java.util.List;

public interface IDeviceCategoryService extends IBaseService<DeviceCategory,Integer> {
    List<DeviceCategory> findByProject(Project project);

    DeviceCategory findByProjectAndName(Project project, String name);

    //void updateDevices(DeviceCategory category, int deviceId);

    DeviceCategory saveAndFlush(DeviceCategory category, Project project);

}

